export default {
  namespace: 'app',
  state: {
    login: false,
    userInfo: {},
    city: {},
    loading: true,
    fetching: false
  },
  subscriptions: {
    setup({ dispatch }) {
      dispatch({ type: 'loadStorage' })
    },
  },

  effects: {
    
  },

  reducers: {
    getLatestVersionSuccess(state, { payload }) {
      let versionData = payload.action.data
      return { ...state, versionData }
    },
    updateState(state, { payload }) {
      return { ...state, ...payload }
    },
  },
}
